<?php 
require_once('employe.cl.php');
$employe = new Employe();
if(count($_POST) > 0) {
    $employe->setValues($_POST);
    $employe->login();
}
$__CURRENT_PAGE__ = '';
$__TITLE__ = ".::Gestion des gardes Gantour Login::.";
require_once(dirname(__FILE__).'/../config/head.php'); ?>
<body>
<div class="container login">
<h1>Espace admin gestion des gardes<br/><div align="center"><img src="../static/img/ocp_small.jpg" />GANTOUR<div></h1>
<form class="form-horizontal" method="post" action="">
    <div class="control-group"> 
        <label class="control-label" for="matricule">Matricule</label>
        <div class="controls">
            <input type="text" id="matricule" name="matricule" placeholder="Votre matricule">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="password">Mot de passe</label>
        <div class="controls">
            <input type="password" name="password" id="password" placeholder="Mote de passe">
        </div>
    </div>
        <div class="control-group">
            <div class="controls">
                <?php echo $employe->getError('login') ?>
                <button type="submit" class="btn">Se connecter</button>
            </div>
        </div>
    </div>
</form>
</div>
</body>
</html>
